package demo02;
import java.util.Scanner;
public class ScannerDemo {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println("please enter a num:");
		int num = sc.nextInt();
		System.out.println(num);
		
		System.out.println("please enter a string:");
		String str = sc.next();
		System.out.println(str);
	}
}
